<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:zj="http://www.zju.edu.cn" elementFormDefault="qualified">
  <xs:import namespace="http://www.zju.edu.cn" schemaLocation="StoredProcItem.xsd"/>
  <xs:element name="Toolkit">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="zj:StoredProc" maxOccurs="unbounded"/>
      </xs:sequence>
      <xs:attribute name="version" default="2.0" type="xs:string"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="Param">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="DefaultValue" minOccurs="0"/>
      </xs:sequence>
      <xs:attribute name="Kind">
        <xs:simpleType>
          <xs:restriction base="xs:NMTOKEN">
            <xs:enumeration value="Output"/>
            <xs:enumeration value="InputOutput"/>
            <xs:enumeration value="ReturnValue"/>
            <xs:enumeration value="Input"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="Name" use="required" type="xs:string"/>
      <xs:attribute name="Type">
        <xs:simpleType>
          <xs:restriction base="xs:NMTOKEN">
            <xs:enumeration value="Date"/>
            <xs:enumeration value="double"/>
            <xs:enumeration value="text"/>
            <xs:enumeration value="string"/>
            <xs:enumeration value="money"/>
            <xs:enumeration value="DateTime"/>
            <xs:enumeration value="blob"/>
            <xs:enumeration value="int"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="Size" type="xs:unsignedInt"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="DefaultValue">
    <xs:complexType mixed="true">
      <xs:choice minOccurs="0" maxOccurs="unbounded"/>
      <xs:attribute name="NeedParse" type="xs:boolean"/>
      <xs:attribute name="SQLInject" type="xs:boolean"/>
      <xs:attribute name="EmptyMarco" type="xs:string"/>
    </xs:complexType>
  </xs:element>
</xs:schema>
